package com.isdepci.project.result.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.result.mapper.EnergyBreakdownMapper;
import com.isdepci.project.result.domain.EnergyBreakdown;
import com.isdepci.project.result.service.IEnergyBreakdownService;

/**
 * 按能源划分Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-05
 */
@Service
public class EnergyBreakdownServiceImpl implements IEnergyBreakdownService
{
    @Autowired
    private EnergyBreakdownMapper energyBreakdownMapper;

    /**
     * 查询按能源划分
     */
    @Override
    public EnergyBreakdown selectEnergyBreakdownById(Long id)
    {
        return energyBreakdownMapper.selectEnergyBreakdownById(id);
    }

    /**
     * 查询按能源划分列表
     */
    @Override
    public List<EnergyBreakdown> selectEnergyBreakdownList(EnergyBreakdown energyBreakdown)
    {
        return energyBreakdownMapper.selectEnergyBreakdownList(energyBreakdown);
    }

    /**
     * 新增按能源划分
     */
    @Override
    public int insertEnergyBreakdown(EnergyBreakdown energyBreakdown)
    {
        return energyBreakdownMapper.insertEnergyBreakdown(energyBreakdown);
    }

    /**
     * 修改按能源划分
     */
    @Override
    public int updateEnergyBreakdown(EnergyBreakdown energyBreakdown)
    {
        return energyBreakdownMapper.updateEnergyBreakdown(energyBreakdown);
    }

    /**
     * 批量删除按能源划分
     */
    @Override
    public int deleteEnergyBreakdownByIds(Long[] ids)
    {
        return energyBreakdownMapper.deleteEnergyBreakdownByIds(ids);
    }

    /**
     * 删除按能源划分信息
     */
    @Override
    public int deleteEnergyBreakdownById(Long id)
    {
        return energyBreakdownMapper.deleteEnergyBreakdownById(id);
    }
}
